//
//  ViewController.m
//  SkyonSDK_Example
//
//  Created by 张二帅 on 2018/5/5.
//  Copyright © 2018年 Skyon. All rights reserved.
//

#import "ViewController.h"
#import <SkyonSDK/Skyon.h>

@interface ViewController ()

@end

@implementation ViewController


- (void)viewDidLoad {
    [super viewDidLoad];
    
    // Do any additional setup after loading the view, typically from a nib.

//    NSLog(@"设备名称：%@",[Skyon getDeviceName]);
    NSLog(@"设备默认语言：%@",[Skyon deviceDefaultLanguage]);
    NSLog(@"设备型号：%@",[Skyon deviceModel]);
//    NSLog(@"操作系统平台：%@",[Skyon getSystemName]);
    NSLog(@"运营商类型：%@",[Skyon telephonyCarrierName]);
//    NSLog(@"操作系统版本：%@",[Skyon getSystemVersion]);
    NSLog(@"国际移动用户识别码号码：%@",[Skyon telephonyMCCAndMNC]);
    NSLog(@"分辨率：%@",[Skyon deviceResolution]);
    NSLog(@"开机时间：%@",[Skyon deviceElapseBootTime]);
//    NSLog(@"系统日期和时间：%@",[Skyon getSystemDateTime]);
//    NSLog(@"屏幕尺寸：%@英寸",[Skyon getScreenSize]);
    NSLog(@"屏幕密度DPI：%@",[Skyon deviceDPI]);
    NSLog(@"屏幕密度PPI：%@",[Skyon devicePPI]);
//    NSLog(@"应用名称：%@",[Skyon getAppName]);
//    NSLog(@"应用的包名：%@",[Skyon getAppPackageName]);
//    NSLog(@"应用版本号：%@",[Skyon getAppVersion]);
//    [Skyon setAppKey:@"abc"];
//    NSLog(@"渠道对应的appkey:%@",[Skyon getAppKey]);
//    NSLog(@"是否支持GPS：%@",[Skyon isLocationEnabled] ? @"YES" : @"NO");
    NSLog(@"是否是移动设备:%@",[Skyon isMobileDevice] ? @"YES" : @"NO");
    
}

- (IBAction)getUUIDClick:(id)sender {
    NSLog(@"%@",[Skyon advertisingIdentifier]);
    
    NSLog(@"是否支持蓝牙：%@",[Skyon isBluetoothSupported] ? @"YES" : @"NO");
    [Skyon event:@"hello"];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
